<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>detail conf_setting_info</title>
    <link rel="stylesheet" href="/static/super_cmdb/css/font.css">
    <link rel="stylesheet" href="/static/super_cmdb/css/xadmin.css">
</head>
<body class="layui-anim layui-anim-up">
    <div class="layui-form-item">
        <xblock>
            <textarea id="setting_content" name="setting_content" readonly="true" style="margin-left: 50px;margin-top:5px;margin-bottom: 5px; width: 95%;height: 500px;font-size: 14px;font-weight: bold;color: royalblue;line-height: 20px;">{{ conf_setting_info.setting_content }}</textarea>
        </xblock>
        {% if conf_setting_info.purpose == 2 %}
            <xblock>
                <h4 style="font-weight: bold">上面配置解析快速查看</h4>
            </xblock>
            <xblock>
                {% for type,type_content in setting_content.items %}
                    <xblock>
                        <h5 style="color: green;">跨服类型: {{ type }}</h5>
                    </xblock>
                    <table class="layui-table" id='table1'>
                        <thead>
                          <tr>
                            <th>server_id</th>
                            <th>配置名称</th>
                            <th>连接服务数量</th>
                            <th>连接的服务id</th>
                          </tr>
                        </thead>
                        <tbody>
                            {% for server_id,server_content in type_content.items %}
                                <tr>
                                    <td>{{ server_id }}</td>
                                    <td>{{ server_content.remarks }}</td>
                                    <td>{{ server_content.game_server_id|length }}</td>
                                    <td>{{ server_content.game_server_id }}</td>
                                </tr>
                            {% endfor %}
                        </tbody>
                    </table>
                {% endfor %}
            </xblock>
        {% endif %}
    </div>
</body>
</html>
